package com.yhc.order.server.exception;

import lombok.Getter;

@Getter
public enum ErrorCodeEnum {

    /**
     * nft-video错误码（4001001-4001999）
     */

    EXCEPTION_TEST("4001001", "test exception"),
    EXCEPTION_REQUIRED_PARAMS_NO_REQUEST_ID("4001002", "no requestId"),
    EXCEPTION_REQUIRED_PARAMS_NO_TX_TIME("4001003", "no txTime"),
    EXCEPTION_USER_NO_LOGIN("4001004", "用户未登录"),
    EXCEPTION_USER_NO_EXISTS("4001005", "用户不存在"),

    EXCEPTION_BUG_GOODS("4001006", "商品购买失败"),
    ;

    String code;
    String message;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
